/**
 * 日常考核-事件考核-结果查看
 */

import request from '@/router/axios'
// 考核对象确认
export function khdxConfirm(id) {
  return request({
    url: `/appr-event/rckhsjkhdx/resultConfirm/${id}`,
    method: 'get',
  })
}

// 查询  列表
/*export function eventExamineList(query, type) {
  return request({
    url: `/appr-event/rckhsjkhdx/psjgpage`, // /appr-contract/zxgzgzcj/page/${type}
    method: 'get',
    params: query
  })
}*/

// 查询  列表
export function eventExamineList(query,sszt) {
  return request({
    url:  `/appr-event/rckhsjkhdx/psjgpage`, //  /appr-event/rckhsjkhdx/psjgpage
    method: 'get',
    params: query
  })
}

// 领导审批
export function leaderAudition(ids, pass) {
  return request({
    url: `/appr-contract/zxgzpro/process/audit/${ids}/${pass}`,
    method: 'put',
  })
}

//提交审核给谁
export function showUserName(id) {
  return request({
    url: `/appr-contract/zxgzsptask/getNextTaskUser/${id}`,
    method: 'get',
  })
}

// 事件评审某条数据详情查询
export function dataDetail(id) {
  return request({
    url: `/appr-event/rckhsjkhdx/${id}`,
    method: 'get',
  })
}

// 发约人组织结构
export function fetchUserList(query) {
  return request({
    url: '/appr-event/rckhsjkhdx/getUserList',
    method: 'get',
    params: query
  })
}

//批量添加修改分摊人员
export function saveList(obj) {
  return request({
    url: '/appr-event/rckhsjkhdxuser/saveList',
    method: 'post',
    data: obj
  })
}

// 发约人组织结构
export function uptypeByBh(query) {
  return request({
    url: '/appr-event/rckhsjkhdx/uptypeByBh',
    method: 'get',
    params: query
  })
}



//查询分摊人员信息
export function fetchList(query) {
  return request({
    url: '/appr-event/rckhsjkhdxuser/page',
    method: 'get',
    params: query
  })
}



// 提交申诉
export function subSs(query){
  return request({
    url: '/appr-event/rckhsjkhdx/subSs',
    method: 'put',
    data: query
  })
}
